#include "mainwindow.h"

#include <QApplication>

#include  <QtDBus>
#include <QDebug>
#include  "testinterfaceadaptor.h"
#include  "test.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    Test *test = new Test();

    new TestInterfaceAdaptor(test);
    QDBusConnection conn = QDBusConnection::sessionBus();
    conn.registerObject("/",test);
    conn.registerService("com.asianux.btagent");

    MainWindow w;
    w.show();
    return a.exec();
}
